const genderArr = [
  {
    label: '男',
    value: 1
  },
  {
    label: '女',
    value: 0
  },
  {
    label: '保密',
    value: -1
  }
]
function getLabel(value) {
  const findItem = genderArr.find((item) => item.value === value)
  return findItem ? findItem.label : '-'
}

export { getLabel }
